# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-lxc
pkgver=5.0.0
pkgrel=4
pkgdesc="Python3 bindings for LXC"
options="!check" # No testsuite
url="https://linuxcontainers.org"
arch="all"
license="LGPL-2.1-or-later"
depends="python3"
makedepends="lxc-dev python3-dev py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://linuxcontainers.org/downloads/lxc/python3-lxc-$pkgver.tar.gz"
builddir="$srcdir/python3-lxc-$pkgver"

build() {
	gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
4a1c9af0c322fbfe13ab0778e438ad4bc4ffde153e7fb55b594b6381c6875a93b7d0476bd1d7bcd7344a2d6de81ce6f5fd96519926a32b4acea27acf1bcd2011  python3-lxc-5.0.0.tar.gz
"
